﻿using HuiLian.Model.Models.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace HuiLian.Model.Models
{
    [Table("User")]
    public class User : ModelBase
    {
        private int id;
        private string useranme;
        private string password;
        private string telphone;
        private string imagepath;
        private double remainder;
        private double available;
        [Key]
        public int Id { get { return id; } set { id = value; OnPropertyChanged("Id"); } }
        public string Username { get { return useranme; } set { useranme = value; OnPropertyChanged("Useranme"); } }
        public string Password { get { return password; } set { password = value; OnPropertyChanged("Password"); } }
        public string Telphone { get { return telphone; } set { telphone = value; OnPropertyChanged("Telphone"); } }
        public string ImagePath { get { return imagepath; } set { imagepath = value; OnPropertyChanged("ImagePath"); } }
        public double Remainder { get { return remainder; } set { remainder = value; OnPropertyChanged("Remainder"); } }
        public double Available { get { return available; } set { available = value; OnPropertyChanged("Available"); } }
    }
}
